	<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
<title>活动信息</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE10" />

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="css/matrix-style.css" />
<link rel="stylesheet" href="css/matrix-media.css" />
<link rel="stylesheet" href="jquery-easyui/themes/default/easyui.css" />
<link rel="stylesheet" href="jquery-easyui/themes/icon.css" />
<script type="text/javascript" src="jquery-easyui/jquery.min.js"></script>
<script type="text/javascript" src="jquery-easyui/jquery.easyui.min.js"></script>
<script charset="utf-8" src="editor/kindeditor-all.js"></script>
<script charset="utf-8" src="editor/lang/zh-CN.js"></script>
<link type="text/javascript" href="editor/themes/default/default.css"></link>
<script type="text/javascript" src="editor/plugins/code/prettify.js"></script>
<style>
 .content-header{
/*   margin-top:-38px;
 */  font-size:16px;
  background-color:#fff;
 }
 .content-header table{
  font-weight:bolder;
  margin-left:30px;
 }
 .content-header .header-number{
  margin-left:10px;
 }
 div.span4{
 }
 .title-align th{
  text-align:left;
  
 }
/*easyui*/
#fm {
	margin: 0;
	padding: 10px 30px;
}

.ftitle {
	font-size: 14px;
	font-weight: bold;
	padding: 5px 0;
	margin-bottom: 10px;
	border-bottom: 1px solid #ccc;
}

.fitem {
	margin-bottom: 5px;
}

.fitem label {
	display: inline-block;
	width: 80px;
}

.fitem input {
	width: 160px;
} 
</style>
<script type="text/javascript">
$(document).ready(function(){
	 $.ajax({
			url:"<%=request.getContextPath()%>/task?method=taskcount",
			dataType:'json',
			type:'post',
			data:{},
			beforeSend:function(){
				
			},
			success:function(result){
				if(result.success){
					$("#count").text(result.count);
				}
			}
		})
		$('#dg').datagrid({
			    title:'活动列表',
		        width:'100%',
			    pagination:true,
			    rownumbers:true,
			    fitColumns:true,
			    singleSelect:true,
			    idField:'id',
			    url:'<%=request.getContextPath()%>/travel?method=list',
			    columns:[[
			        {field:'id',title:'编号',width:'10%'},
			        {field:'title',title:'标题',width:'50%' },
			        {field:'content',title:'内容',hidden:true},
			        {field:'datetime',title:'发布时间',width:'10%'},

			        {field:'money',title:'收费方式',width:"20%",align:'center',
			            formatter:function(value,row,index){
				          switch(value){
				          case 0:
				        	  return '免费';
				        	  break;
				          default:
				        	  return value+'(￥)';
				        	  break;
				          }
			            }
			        }
			    ]],
			 onClickRow: function (index, row) {//点击事件
				
		     }
	
			 
			});
	var ddlMenu1 = $('#li1').menubutton({ menu: '#cusmenu1' }); 
	var ddlMenu2 = $('#li2').menubutton({ menu: '#cusmenu2' }); 

	//menubutton 依赖于 menu、linkbutton 这两个插件，所以我们可以这样搞定她
	$(ddlMenu1.menubutton('options').menu).menu({
            onClick: function (item) {
            	if(item.id=='id1'){
            		
            	}else if(item.id=='id2'){
                    window.open("<%=request.getContextPath()%>/task?method=assisttasks","_blank")

            	}else if(item.id=='id3'){
                    window.open("<%=request.getContextPath()%>/","_self")
            	}
            }
	})
	$(ddlMenu2.menubutton('options').menu).menu({
	            onClick: function (item) {
	            	 if(item.id=='id4'){
	            	}
	            }
	})
})
</script>
<script>
function logout(){
		$.messager.confirm('Confirm','Are you sure you want to logout?',function(r){
            if (r){
                $.post('<%=request.getContextPath()%>/logout',function(result) {
					if (result.success) {
						$.messager.show({ // show error message
							title : '提示',
							msg : '退出成功'
						});
			           }
				 else {
						$.messager.show({ // show error message
									title : '提示',
									msg : '登录已过期，重新登录'
								});
					   }
				}, 'json');
    			window.open('<%=request.getContextPath()%>/index.jsp','_self');
		     }
	});
}

function profile(){
	window.open('<%=request.getContextPath()%>/profile?method=page','_self');
}
function gohome(){
	window.open('<%=request.getContextPath()%>/dashboard','_self');
}
</script>
<script >
 function newTravel(){
	 $("#dlg").dialog('open').dialog('setTitle','发布活动');
	 $('#fm').form('clear');
     KindEditor.create("#editor_id",{
		 cssPath:'editor/plugins/code/prettify.css',
 		 resize:0,
		 uploadJson:'editor/jsp/upload_json.jsp',
	     fileManagerJson : 'editor/jsp/file_manager_json.jsp',
		 allowPreviewEmoticons:true,
		 allowImageUpload:true,			
		 width:'100%',
		 
		 afterBlur:function() {
		      this.sync();
		  }
		 }) ;
	
	 url="<%=request.getContextPath()%>/travel?method=add";
 }
 function doadd(){
	 /*提取第一张图片*/
	 var src="";
	 var html=$("#editor_id2").val();
	 var regexp=/<img.*?src="(.*?)"/;
	 var srcs=regexp.exec(html); 
	 if(srcs!=null){
		 var src=srcs[1];
	 }
	 $('#fm').form('submit',{
		 url:url+"&firstimgurl="+src,
		 onSubmit:function(){
		 },
		 success:function(result){
			var result = eval('('+result+')');
            if (!result.success){
                $.messager.show({
                    title: 'Error',
                    msg: "添加任务失败"
                });
            } else {
            	 $.messager.show({
                     title: 'success',
                     msg: "发布成功"
                 });
                $('#dlg').dialog('close');        // close the dialog
                $('#dg').datagrid('reload');    // reload the user data
            }
		 }
	 })
 }
 function editTravel(){
	 KindEditor.create("#editor_id2",{
		 cssPath:'editor/plugins/code/prettify.css',
 		 resize:0,
		 uploadJson:'editor/jsp/upload_json.jsp',
	     fileManagerJson : 'editor/jsp/file_manager_json.jsp',
		 allowPreviewEmoticons:true,
		 allowImageUpload:true,			
		 width:'100%',
		 afterBlur:function() {
		      this.sync();
		  }
		 }) ;
	 var rows=$("#dg").datagrid("getSelections");
	 if(rows.length==1){
		 $("#dlg2").dialog('open').dialog('setTitle','编辑活动'); 
		 $('#fm2').form('load',rows[0]);
		 KindEditor.html('#editor_id2',rows[0].content);
		 url="<%=request.getContextPath()%>/travel?method=edit";
	 }else if(rows.length>1){
		 $.messager.show({
			 title:'提示',
			 msg:'只能选中一个操作'
		 })
	 }
	 
 }
 function doupdate(){
	 /*提取第一张图片*/
	 var src="";
	 var html=$("#editor_id2").val();
	 var regexp=/<img.*?src="(.*?)"/;
	 var srcs=regexp.exec(html); 
	 if(srcs!=null){
		 var src=srcs[1];
	 }
	 $("#fm2").form('submit',{
		 url:url+"&firstimgurl="+src,
		 onSubmit:function(){
		

		 },
		 success:function(result){
			var result = eval('('+result+')');
			 if (!result.success){
	                $.messager.show({
	                    title: 'Error',
	                    msg: "修改失败"
	                });
	            } else {
	            	 $.messager.show({
	                     title: 'success',
	                     msg: "修改成功"
	                 });
	                $('#dlg2').dialog('close');        // close the dialog
	                $('#dg').datagrid('reload');    // reload the user data
	            }
		 }
	 })
	 
 }
 
 function deleteTravel(){
	 var rows=$("#dg").datagrid("getSelections");
	 if(rows.length==1){
		 $.messager.confirm('Confirm','Are you sure delete the activity?',function(r){
			 if(r){
				 $.post('<%=request.getContextPath()%>/travel?method=delete&id='+rows[0].id,function(result){
					 if(result.success){
						 $.messager.show({
							 title:'提示',
							 msg:'删除成功'
						 })
						 $("#dg").datagrid('reload');
					 }else{
						 $.messager.show({
							 title:'提示',
							 msg:'删除失败'
						 })
					 }
				 },'json');
			 }
		 })
	 }else if(rows.length>1){
		 $.messager.show({
			 title:'提示',
			 msg:'选中一个删除'
		 })
	 }
	
 }
 function readTravel(){
	 var rows=$("#dg").datagrid('getSelections');
	 if(rows.length==1){
		 $("#dlg3").dialog('open').dialog('setTitle','活动详情');
		 $('#tit').text(rows[0].title);
		 $('#span1').text(rows[0].datetime);
		 $('#span2').text(rows[0].money);
		 $('#travel').html(rows[0].content);

	 }else if(rows.length>1){
		 $.messager.show({
			 title:'提示',
			 msg:'选中一个操作'
		 })
	 }
 }
 function mangeTravel(){
	 var rows=$("#dg").datagrid("getSelections");
	 if(rows.length==1){
		 $("#dlg4").dialog('open').dialog('setTitle','活动管理');
		 $('#dg2').datagrid({
		        width:'100%',
			    pagination:true,
			    rownumbers:true,
			    fitColumns:true,
			    singleSelect:false,
			    idField:'uid',
			    url:'<%=request.getContextPath()%>/travel?method=users&id='+rows[0].id,
			    columns:[[
			        {field:'ck',checkbox:true},
			        {field:'uid',title:'用户id',width:'20%'},
			        {field:'name',title:'姓名',width:'10%' },
			        {field:'school',title:'学校',width:'20%'},
			        {field:'grade',title:'年级',width:'10%'},
			        {field:'due',title:'到期时间',width:'10%'},
			        {field:'phone',title:'手机号',width:'20%'},
			        {field:'email',title:'邮箱',width:'20%'},
			    ]],
			 onClickRow: function (index, row) {//点击事件
				
		     }
		 })
		 
		 
	 }else if(rows.length>1){
		 $.messager.show({
			 title:"提示",
			 msg:'选中一个操作'
				 
		 })
	 }
 }
 function readUser(){
		var rows=$("#dg2").datagrid('getSelections');
		if(rows.length==1){
			$('#dlg5').dialog('open').dialog('setTitle','查看用户详情');
			$("#uid").text(rows[0].uid);
			$('#name').text(rows[0].name);
			$("#type").text(function(){
				switch (rows[0].type) {
				case 1:
					return '普通会员';
					break;
				case 2:
					return 'vip会员'
					break;
				default:
					break;
				}
			});
			$("#phone").text(rows[0].phone);
			$("#email").text(rows[0].email);
			$('#school').text(rows[0].school);
			$("#grade").text(function(){
				switch (rows[0].grade) {
				case 1:
					return '大一';
					break;
				case 2:
					return '大二';
					break;
				case 3:
					return '大三';
					break;
				case 4:
					return '大四';
					break;
				default:
					break;
				}
			});
			$("#due").text(rows[0].due);
			$("#assistid").text(rows[0].assistid);
			
		}else if(rows.length>1){
			$.messager.show({
				title:'Erroe',
				msg:'一次只能选中一个'
			})
		}
	}
 
 function addBackup(){
	 var rows=$('#dg').datagrid("getSelections");
	 var assistid="${sessionScope.assist.id}";
	 $("#dlg6").dialog('open').dialog('setTitle','添加备注');
	 $("#fm6 #assistid").textbox('setValue',assistid);
	 url="<%=request.getContextPath()%>/travel?method=backadd&travelid="+rows[0].id;
 }
 function doBackup(){
	 $("#fm6").form('submit',{
		 url:url,
		 onSubmit:function(){
			 
		 },
		 success:function(result){
				var result = eval('('+result+')');
				if(result.success){
					$.messager.show({
						title:'提示',
						msg:'添加备份成功'
					})
					$('#dlg6').dialog('close');
					
				}else{
					$.messager.show({
						title:'提示',
						msg:"添加备份失败"
					})
				}
		 }
		 
	})
 }
 function showBackup(){
	  var rows=$("#dg").datagrid('getSelections');
	  $('#dlg7').dialog('open').dialog('setTitle','查看编辑备注');
	  $('#dg3').datagrid({
		    title:'备份列表',
		    width:'100%',
		    pagination:true,
		    rownumbers:true,
		    fitColumns:true,
		    singleSelect:true,
		    idField:'id',
		    url:'<%=request.getContextPath()%>/travel?method=backlist&travelid='+rows[0].id,
		    columns:[[
		        {field:'id',title:'编号'},
		        {field:'content',title:'内容' },
		        {field:'datetime',title:'日期时间'},
		        {field:'do',title:'操作',width:70,align:'center',
		            formatter:function(value,row,index){
		                if (true){
		                    var q = '<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="backedit('+index+')">编辑</a>  ';
		                    var z = '<a href="#" class="easyui-linkbutton"  onclick="backdelete('+row.id+')">删除</a>  ';
		                    return q+z;
		                } else {
		                    var e = '<a href="#" onclick="editrow('+index+')">Edit</a> ';
		                    var d = '<a href="#" onclick="deleterow('+index+')">Delete</a>';
		                    return e+d;
		                }
		            }
		        }
		    ]],
		});
	}
 function backdelete(id){
		$.messager.confirm('Confirm','Are you sure you want to delete?',function(r){
	        if (r){
	            $.post('<%=request.getContextPath()%>/travel?method=backdelete&id='+id,function(result) {
					if (result.success) {
						$.messager.show({ // show error message
							title : '提示',
							msg : '删除成功'
						});
						$("#dg3").datagrid('reload');
			           }
				 else {
						$.messager.show({ // show error message
								title : '提示',
								msg : '删除失败'
							});
					   }
				}, 'json');

		     }
	});
	}
function backedit(index){
	$("#dg3").datagrid('selectRow',index);
	var row=$('#dg3').datagrid('getSelected');
	$('#dlg8').dialog('open').dialog('setTitle','编辑');
	$('#fm8').form('load',row);
	url='<%=request.getContextPath()%>/travel?method=backedit&id='+row.id;
}
function doedit(){
	$('#fm8').form('submit',{
		url:url,
		onSubmit:function(){
			
		},
		success:function(result){
            var result = eval('('+result+')');
            if(result.success){
            	$.messager.show({
            		title:'提示',
            		msg:'修改成功'
            	})
            	$("#dg3").datagrid('reload');
            	$("#dlg8").dialog('close');
            }else{
            	$.messager.show({
            		title:'提示',
            		msg:'修改失败'
            	})
            }
		}
	})
}
function gotoMytask(){
	window.open('<%=request.getContextPath()%>/task','_self');
	
}
</script>
</head>
<body>

<!--Header-part-->
<div id="header">
  <h1><a href="dashboard.html">Matrix Admin</a></h1>
</div>
<!--close-Header-part--> 
<!-- header menu -->
<ul style="position:absolute;left:200px;top:20px;list-style:none;">

 <li id="li2" style="float:left;padding:5px;color:#0094ff;font-size:12px;" icon="icon-lightning" onclick="gohome()">首页</li>
</ul>

<!-- header menu -->
<div id="welcome" >
<h3 style="position:absolute;top:5px;right:30px;font-size:16px;height:35px;line-height:32px;background:white;border-radius:10px 10px">
<a href="#" onclick="gotoMytask()"><span style="padding:5px;border-radius:10px 10px ;color:white;background:red;" id="count"></span></a>

<a href="#" class="easyui-menubutton" data-options="menu:'#mm5',iconCls:'icon-man'" style="color:#0094ff;">${sessionScope.assist.id }</a>
</h3>
</div>
<div id="mm5" style="width:150px;">
		<div data-options="iconCls:'icon-undo'" onclick="profile()">个人设置</div>
		<div class="menu-sep"></div>
		<div>我的任务</div>
		<div class="menu-sep"></div>
		<div>系统消息</div>
		<div class="menu-sep"></div>
		<div onclick="logout()">安全退出</div>
</div>
<!-- side bar start -->
<div id="sidebar" ><a href="#" class="visible-phone"><i class="icon icon-home"></i> Dashboard2</a>
  <ul>
    <li ><a  href="<%=request.getContextPath()%>/dashboard"><i class="icon icon-home"></i> <span>Dashboard控制面板</span></a> </li>
    <li> <a href="<%=request.getContextPath()%>/study?method=page"><i class="icon icon-signal"></i> <span>Study news留学信息</span></a> </li>
    <li  class="active"> <a href="<%=request.getContextPath()%>/travel?method=page"><i class="icon icon-inbox"></i> <span>Travel New活动信息</span></a> </li>
    <li><a href="<%=request.getContextPath()%>/news?method=page"><i class="icon icon-th"></i> <span>Recent News近期新闻</span></a></li>
    <li><a href="<%=request.getContextPath()%>/member?method=page"><i class="icon icon-fullscreen"></i> <span>Members centre会员中心</span></a></li>
    <c:choose>
     <c:when test="${sessionScope.assist.type eq 0}">
      <li><a href="<%=request.getContextPath()%>/assist"><i class="icon icon-th-list"></i> <span>助理管理</span></a></li>
     </c:when>
    </c:choose>
     <li><a href="<%=request.getContextPath() %>/task"><i class="icon icon-th-list"></i> <span>任务管理</span></a></li>
  </ul>
</div>
<div id="content" class="easyui-layout">
<div region="center" 
			style="padding: 0px; background: #eee;">
			<table id="dg"  toolbar="#toolbar">
			</table>
			<div id="toolbar">
			<c:choose>
			<c:when test="${sessionScope.assist.type eq 0 }">
			 <a href="#" class="easyui-linkbutton" iconCls="icon-add"
					plain="true" onclick="newTravel()">发布活动</a> <a href="#"
					class="easyui-linkbutton" iconCls="icon-edit" plain="true"
					onclick="editTravel()">修改活动</a> <a href="#"
					class="easyui-linkbutton" iconCls="icon-remove" plain="true"
					onclick="deleteTravel()">删除活动</a>
			</c:when>
			</c:choose>
				<a href="#"
					class="easyui-linkbutton" iconCls="icon-large-smartart"
					plain="true" onclick="readTravel()">活动详情</a> <a href="#"
					class="easyui-linkbutton" iconCls="icon-large-smartart"
					plain="true" onclick="mangeTravel()">活动管理</a> 
			</div>
			<!-- dialog弹出框 -->
			<div id="dlg" class="easyui-dialog"
				style="width:900px; height: 600px; padding: 10px 20px"
				closed="true" buttons="#dlg-buttons">
				<div class="ftitle" style="text-align: center;">发布活动</div>
				<form id="fm" method="post" novalidate>
					<div class="fitem">
						<label>标题:</label> <input name="title" class="easyui-textbox"
							required="true"  style="width:300px">
					</div>
					<div class="fitem">
						<label>活动内容:</label>
					   <textarea style="float:left;"  class="easyui-kindeditor" id="editor_id" name="content"   required="true"></textarea>
					</div>
					<div class="fitem">
						<label>收费金额:</label> 
					 <input name="money" class="easyui-textbox"
							required="true"  style="width:300px">元
					</div>
				</form>
			</div>
			<div id="dlg-buttons">
				<a href="javascript:void(0)" class="easyui-linkbutton c6"
					iconCls="icon-ok" onclick="doadd()" style="width: 90px">Save</a> <a
					href="javascript:void(0)" class="easyui-linkbutton"
					iconCls="icon-cancel"
					onclick="javascript:$('#dlg').dialog('close')" style="width: 90px">Cancel</a>
			</div>
			<div id="dlg2" class="easyui-dialog"
				style="width:900px; height: 600px; padding: 10px 20px"
				closed="true" buttons="#dlg-buttons2">
				<div class="ftitle" style="text-align: center;">编辑活动</div>
				<form id="fm2" method="post" novalidate>
					<div class="fitem">
						<label>编号:</label> <input name="id" class="easyui-textbox"
							required="true" readonly style="width:300px">
					</div>
					<div class="fitem">
						<label>标题:</label> <input name="title" class="easyui-textbox"
							required="true"  style="width:300px">
					</div>
					<div class="fitem">
						<label>活动内容:</label>
					   <textarea style="float:left;"  class="easyui-kindeditor " id="editor_id2" name="content"   required="true"></textarea>
					</div>
					<div class="fitem">
						<label>时间:</label> 
					 <input name="datetime" class="easyui-datebox"
							required="true"  style="width:300px">
					</div>
					<div class="fitem">
						<label>收费金额:</label> 
					 <input name="money" class="easyui-textbox"
							required="true"  style="width:300px">元
					</div>
				</form>
			</div>
			<div id="dlg-buttons2">
				<a href="javascript:void(0)" class="easyui-linkbutton c6"
					iconCls="icon-ok" onclick="doupdate()" style="width: 90px">Save</a> <a
					href="javascript:void(0)" class="easyui-linkbutton"
					iconCls="icon-cancel"
					onclick="javascript:$('#dlg2').dialog('close')" style="width: 90px">Cancel</a>
			</div>
			<div id="dlg3" class="easyui-dialog"
				style="width:900px; height: 600px; padding: 10px 20px"
				closed="true" buttons="#dlg-buttons3">
				 <h3 id="tit" style="text-align:center;"></h3>
				 <div>发布时间:<span id="span1" style="padding:0px 500px 0px 10px;"></span>收费方式：<span id='span2'></span>元</div>
				<hr/>
                <div id="travel"></div>
				
			</div>
			<div id="dlg-buttons3">
				 <a href="javascript:void(0)" class="easyui-linkbutton"
					iconCls="icon-cancel"
					onclick="javascript:$('#dlg3').dialog('close')" style="width: 90px">Cancel</a>
			</div>
			
			<div id="dlg4" class="easyui-dialog"
				style="width:900px; height: 600px; padding: 10px 20px"
				closed="true" buttons="#dlg-buttons4">
				<table id="dg2"  toolbar="#toolbar2"></table>
				<div id="toolbar2">
				<a href="#" class="easyui-linkbutton" iconCls="icon-add"
					plain="true" onclick="readUser()">会员详情</a> <a href="#"
					class="easyui-linkbutton" iconCls="icon-edit" plain="true"
					onclick="">发送消息</a> <a href="#"
					class="easyui-linkbutton" iconCls="icon-remove" plain="true"
					onclick="addBackup()">添加备注</a>
					<a href="#"	class="easyui-linkbutton" iconCls="icon-remove" plain="true"
					onclick="showBackup()">查看编辑备注</a>
			</div>
			</div>
			<div id="dlg-buttons4">
				 <a href="javascript:void(0)" class="easyui-linkbutton"
					iconCls="icon-cancel"
					onclick="javascript:$('#dlg4').dialog('close')" style="width: 90px">Cancel</a>
			</div>
			
			<div id="dlg5" class="easyui-dialog"
				style="width:600px; height: 500px; padding: 10px 20px"
				closed="true" buttons="#dlg-buttons5">
				<div class="ftitle" style="text-align: center;">会员资料</div>
				<table class="table table-bordered table-invoice">
                  <tbody>
                    <tr>
                    <tr>
                      <td><strong> 用户id:</strong></td>
                      <td id='uid'></td>
                    </tr>
                    <tr>
                      <td><strong>姓名</strong></td>
                      <td id="name"></td>
                    </tr>
                    <tr>
                      <td><strong>会员类型</strong></td>
                      <td id="type"></td>
                    </tr>
                    <tr>
                    <td ><strong>联系电话</strong></td>
                    <td id='phone'></td>
                    </tr>
                    <tr>
                     <td><strong>电子邮箱</strong></td>
                     <td id='email'></td>
                    </tr>
                    <tr>
                     <td><strong>在读学校</strong></td>
                     <td id="school"></td>
                    </tr>
                    <tr>
                     <td><strong>在读年级</strong></td>
                     <td id='grade'></td>
                    </tr>
                    <tr>
                     <td><strong>会员有效期至</strong></td>
                     <td id='due'></td>
                    </tr>
                    <tr>
                     <td><strong>个人助理</strong></td>
                     <td id='assistid'></td>
                    </tr>
                    </tbody>
                </table>
			</div>
			<div id="dlg-buttons5">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg5').dialog('close')" style="width:90px">Cancel</a>
			</div>
			
			
			<div id="dlg6" class="easyui-dialog"
				style="width:600px; height: 400px; padding: 10px 20px"
				closed="true" buttons="#dlg-buttons6">
				<div class="ftitle" style="text-align: center;">给活动添加备注信息</div>
				<form id="fm6" method="post" novalidate>
					<div class="fitem">
						<label>管理员id:</label> <input name="assistid" class="easyui-textbox" id="assistid"
							required="true"  style="width:300px" readonly="readonly">
					</div>
					<div class="fitem">
						<label>备份内容:</label>
						<textarea id="" rows='6' style="width:300px;" name="content" class="textarea easyui-validatebox" ></textarea>
					</div>
					
				</form>
			</div>
			<div id="dlg-buttons6">
			 <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="doBackup()" style="width:90px">Save</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg6').dialog('close')" style="width:90px">Cancel</a>
			</div>
			
			<div id="dlg7"  class="easyui-dialog" style="width:800px;height:600px;padding:10px 20px" 
             closed="true" buttons="#dlg-buttons7">
            <div class="ftitle" style="text-align:center;">备注信息列表</div>
             <table id="dg3" pagination="true"></table>
            </div>
		    <div id="dlg-buttons7">
			    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg7').dialog('close')" style="width:90px">Cancel</a>
		    </div>
		    
		      <div id="dlg8" class="easyui-dialog"
				style="width:600px; height: 400px; padding: 10px 20px"
				closed="true" buttons="#dlg-buttons8">
				<div class="ftitle" style="text-align: center;">编辑备注信息</div>
				<form id="fm8" method="post" novalidate>
					<div class="fitem">
					    <label>编号:</label>
			            <input name="id" style="width:312px" required="true" class="easyui-textbox" readonly='readonly'>
			        </div>
					<div class="fitem">
						<label>备份内容:</label>
						<textarea id="" rows='6' style="width:300px;" name="content" class="textarea easyui-validatebox" ></textarea>
					</div>
					<div class="fitem">
						<label>日期时间:</label> <input  style="width:312px" name="datetime" class="easyui-datetimebox"
							required="true">
					</div>
				</form>
			</div>
			<div id="dlg-buttons8">
			 <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="doedit()" style="width:90px">Save</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg8').dialog('close')" style="width:90px">Cancel</a>
			</div>
 </div>
 </div>
<!--Footer-part-->
<div class="row-fluid">
  <div id="footer" class="span12"> 2016 &copy; <a href="http://themedesigner.in/">guangzhoushuntian information technology</a> </div>
</div>
<!--end-Footer-part-->
</body>
</html>
